<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Controller.SendMail"%>
<%@page import="RssEasy.Core.Encrypt"%>
<%@page import="Controller.SendSms"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String email = request.getParameter("email");
    String num = "";
    for (int i = 0; i < 6; i++) {
        num = num + Math.round(Math.random() * 9);
    }
    Cookie cookie = new Cookie("key",Encrypt.Md532(num));
    cookie.setMaxAge(60);
    cookie.setPath("/");
    response.addCookie(cookie);
    SendMail mail = new SendMail(pageContext);
    mail.to = email;
    mail.matter = num;
    mail.title = "您好你的验证码是";
    mail.Send();


%>
